<?php

namespace adibilis\adminBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * Criteria
 *
 * @ORM\Table()
 * @ORM\Entity(repositoryClass="adibilis\adminBundle\Entity\CriteriaRepository")
 */
class Criteria
{
    /**
     * @var integer
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;

    /**
     * @var string
     *
     * @ORM\Column(name="name", type="string", length=255)
     */
    private $name;

    /**
     * @var string
     *
     * @ORM\Column(name="nameen", type="string", length=255)
     */
    private $nameen;

    /**
     * @var string
     *
     * @ORM\Column(name="namede", type="string", length=255)
     */
    private $namede;

   /**
     * @ORM\OneToOne(targetEntity="adibilis\adminBundle\Entity\CriteriaImage", cascade={"persist"})
     * @ORM\JoinColumn(nullable=true)
     */
    private $image;

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set name
     *
     * @param string $name
     * @return Criteria
     */
    public function setName($name)
    {
        $this->name = $name;
    
        return $this;
    }

    /**
     * Get name
     *
     * @return string 
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * Set nameen
     *
     * @param string $nameen
     * @return Criteria
     */
    public function setNameen($nameen)
    {
        $this->nameen = $nameen;
    
        return $this;
    }

    /**
     * Get nameen
     *
     * @return string 
     */
    public function getNameen()
    {
        return $this->nameen;
    }

    /**
     * Set namede
     *
     * @param string $namede
     * @return Criteria
     */
    public function setNamede($namede)
    {
        $this->namede = $namede;
    
        return $this;
    }

    /**
     * Get namede
     *
     * @return string 
     */
    public function getNamede()
    {
        return $this->namede;
    }

    /**
     * Set image
     *
     * @param \adibilis\adminBundle\Entity\CriteriaImage $image
     * @return Article
     */
    public function setImage(\adibilis\adminBundle\Entity\CriteriaImage $image = null)
    {
        $this->image = $image;
    
        return $this;
    }

    /**
     * Get image
     *
     * @return \adibilis\adminBundle\Entity\CriteriaImage 
     */
    public function getImage()
    {
        return $this->image;
    }
}
